package spec.chencaihui.uint4.task4_11;

    public final class Horse extends Animal {

        public Horse(String name) {
            super(name);
        }

        @Override
        void eat() {
            System.out.println(this.name + "吃草");
        }

//    @Override
//    void rest() {
//        System.out.println(this.name + "吃草");
//    }
    }
